package com.guigu.youxuan.controller;

import com.github.pagehelper.PageInfo;
import com.guigu.youxuan.pojo.Gather;
import com.guigu.youxuan.pojo.GatherDetails;
import com.guigu.youxuan.service.IGatherDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@CrossOrigin
@Controller
@RequestMapping("/gatherDetails")
public class GatherDetailsController {
    @Autowired
    private IGatherDetailsService iGatherDetailsService;

    /**
     * 入库明细列表查询所有入库明细表信息
     * @return
     */
    @RequestMapping("/InStoragePageList/{gatherId}")
    @ResponseBody
    public PageInfo<GatherDetails> InStoragePageList(@PathVariable int gatherId){
        PageInfo<GatherDetails> page=this.iGatherDetailsService.InStoragePageList(gatherId);
        return page;
    }
}
